package com.chinadci.smartcommunitysystembackstage.util;

import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Calendar;
import java.util.Date;

/**
 * 时间工具类
 */
public class DateTime {

    /**
     * 获取当前系统时间
     * @return
     */
    public static String GetTime(){
        Calendar now = Calendar.getInstance();
        Date d = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        return sdf.format(d);
    }
}
